<?php

/**
 * Description of ReservationPresenter
 *
 * @author ufna
 */
class ReservationPresenter extends BasePresenter {

    /**
     * (non-phpDoc)
     *
     * @see Nette\Application\Presenter#startup()
     */
    protected function startup() {
	parent::startup();
    }

    public function actionCreate() {
	$year = date('Y');
	$month = date('m');

	if ($this->isAjax()) {
	    $this->sendResponse(new Nette\Application\Responses\JsonResponse(array(
			array(
			    'id' => 111,
			    'title' => "Event1",
			    'start' => "$year-$month-10",
			    'url' => "http://yahoo.com/",
			    'test' => 'test',
			),
			array(
			    'id' => 1112,
			    'title' => "Udalost1",
			    'start' => "$year-$month-10",
			    'url' => "http://yahoo.com/"
			),
			array(
			    'id' => 222,
			    'title' => "Event2",
			    'start' => "$year-$month-20",
			    'end' => "$year-$month-22",
			    'url' => "http://yahoo.com/"
			)
		    )));
	}
    }

    public function renderCreate() {
	
    }

    public function actionDelete() {
	
    }

    public function renderDelete() {
	
    }

    public function actionUpdate() {
	
    }

    public function renderUpdate() {
	
    }

}